public class Candidate implements Comparable<Candidate> {
	public final int x;
	public final int y;
	public final int dist;
	public final Piece piece;
	public static final Candidate none = new Candidate(0, 0, Integer.MAX_VALUE, null);
	
	public Candidate(int xCor, int yCor, int d, Piece p) {
		x = xCor;
		y = yCor;
		dist = d;
		piece = p;
	}
	public int compareTo(Candidate o) {
		return dist > o.dist ? 1 : (dist < o.dist ? -1 : 0);
	}
}